<table cellpadding="0" cellspacing="0">
	<tbody>
        <tr>
            <td class="leftside">
           		<?php require_once("menu.php");?>
            </td>
            <td class="rightside">
                <div class="box" style="margin-left:10px; margin-right: 10px; float:left;">
                	<div id='title_menu' class="ui-corner-top">Setting</div>  
                    <div class="content" style="min-height: 150px;">
                   	<?php
                    	$setting_sql = 'SELECT * FROM setting';
						$q = $db->select_query($setting_sql);
						$setting = $db->fetch($q);
					?>
                	  <table class="list">
                        <tbody>
                        <tr>
                            <td	width="130"><strong>อีเมลผู้ดูแลระบบ</strong></td>
                            <td><input type="tel" name="admin_email" id="admin_email" value="<?php echo $setting['admin_email']?>" size="30"/> </td>
                        </tr>
                        <tr>
                            <td><strong>อีเมลสำหรับแจ้งข่าวสาร</strong></td>
                            <td><input type="tel" name="info_email" id="info_email" value="<?php echo $setting['info_email']?>" size="30"/></td>
   						</tr>
                        <tr>
                            <td valign="top"><strong>Facebook Box 230</strong></td>
                            <td><textarea id="fb230" cols="100" rows="10"><?php echo $setting['f230'];?></textarea></td>
                        </tr>
                        <tr>
                            <td valign="top"><strong>Facebook Box  340</strong></td>    
                            <td><textarea id="fb340" cols="100" rows="10"><?php echo $setting['f340'];?></textarea></td>
                        </tr>
                        <tr>
                            <td valign="top"><strong>Facebook Like Button</strong></td>    
                        	<td><textarea id="like" cols="100" rows="10"><?php echo $setting['like_button'];?></textarea></td>
                       	</tr>
                        <tr>
                            <td valign="top">Facebook Share Button</td>    
                        	<td><textarea id="fb_share" cols="100" rows="10"><?php echo $setting['fb_share'];?></textarea></td>
                       	</tr>
                        <tr>
                            <td valign="top">ReTweet Button</td>    
                        	<td><textarea id="retweet" cols="100" rows="10"><?php echo $setting['retweet'];?></textarea></td>
                       	</tr>
                        <tr>
                            <td></td>    
                        	<td><input type="button" id="setting_update" value="Update" /><span id="status"></span></td>
                       	</tr>
                        </tbody>
                      </table>
                  </div>
                </div>            
            </td>
        </tr>
   	</tbody>
</table>